<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            box-sizing: border-box;
        }
        @keyframes zhuanl{
            from{
                transform: rotateX(0deg);
            }
            to{
                transform: rotateX(720deg);
            }
        }
        @keyframes zhuanr{
            0%{
                transform: rotateY(0deg);
            }
            50%{
                /* transform: rotateY(720deg) rotateX(180deg); */
            }
            100%{
                transform: rotateY(720deg) rotateX(360deg);
            }
        }
        body{
            background: url(./shou.jpg) 495px 300px no-repeat;
            /* background-color: #111; */
            perspective: 1000px;
            /* transform-style: preserve-3d; */
            /* overflow: hidden; */
           
        }
        .kuang{
            position: relative;
            /* top: 300px;
            left: 640px; */
            margin: 100px auto;
            /* margin-left: 640px; */

            /* top: 200px; */
            width: 200px;
            height: 200px;
            transform-style: preserve-3d;
            /* transition: linear 8s; */
            transform-origin: 100px 100px 0;
            animation: zhuanr 5s infinite linear;
        }
        .kuang:hover{
            animation-play-state: paused;
        }
        .kuang div{
            position: absolute;
            top: 0px;
            left: 0px;
            width: 200px;
            height: 200px;
         font-size: 100px;
         background-color: cornflowerblue;   
         border: crimson 10px solid;
         text-align: center;
         line-height: 200px;
        
        }
        .kuang div:nth-child(1){
            transform: translate3d(0,0,100px);
        }
        .kuang div:nth-child(2){
            transform: translate3d(0,100px,0px) rotateX(-90deg);
        }
        .kuang div:nth-child(3){
            transform: translate3d(0,0px,-100px) rotateY(180deg);
        }
        .kuang div:nth-child(4){
            transform: translate3d(0,-100px,0px) rotateX(90deg);
        }
        .kuang div:nth-child(5){
            transform: translate3d(-100px,0px,0px) rotateY(-90deg);
        }
        .kuang div:nth-child(6){
            transform: translate3d(100px,0px,0px) rotateY(90deg);
        }
        .kuang:hover{
            transform: rotateX(720deg);
        }
        /* img{
            position: absolute;
            top: 50px;
            left: 100px;
            /* margin: 150px auto; */
            /* margin-left: ; */

        
    </style>
</head>
<body>
    <!-- <img src="./未标题-1.png" alt=""> -->
    <div class="kuang">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
    </div>
</body>
</html>